eliminate uneccesary const_cast in osm format.
authortsteven4 <tsteven4@gmail.com>
Sat, 30 Jun 2018 21:17:12 +0000 (15:17 -0600)
committertsteven4 <tsteven4@gmail.com>
Sat, 30 Jun 2018 21:17:12 +0000 (15:17 -0600)
osm.cc

diff --git a/osm.cc b/osm.cc
index 6cb3a55a66793be5b5a59cb97504bae7556cefe5..49ab6108bcc41900972c4f72a58d5da6e113c584 100644 (file)
--- a/osm.cc
+++ b/osm.cc
@@ -459,10 +459,7 @@ osm_feature_symbol(const int ikey, const char* value)
 static char*
 osm_strip_html(const char* str)
 {
-  utf_string utf;
-  utf.is_html = true;
-  utf.utfstring = const_cast<char*>(str);
-
+  utf_string utf(true, str);
   return strip_html(&utf);     // util.cc
 }